const mysql_conf = {
    //写入的主服务器
    master : {
        host : "localhost",
        user : "root",
        password : "root",
        port : "3306",
        database : "project",
    },
    //进行读取的从服务器
    slave : {
        host : "localhost",
        user : "root",
        password : "root",
        port : "3306",
        database : "project",
    },
}

const  redis_conf ={
    //登录状态
    login_status : {
        host : "127.0.0.1",
        prot : "6379",
        auth_pass : "root",
        db : 0
    },

    //登录使用的验证码
    login_sms : {
        host : "localhost",
        prot : 6379,
        auth_pass : "root",
        db : 1
    },

    //注册发送的验证码
    singup_sms : {
        host : "localhost",
        prot : "6379",
        auth_pass : "root",
        db : 2
    },

    //忘记密码的验证码
    forget_sms : {
        host : "localhost",
        prot : "6379",
        auth_pass : "root",
        db : 3
    },

}

//邮件发送的配置
const smtp_conf = {
    host : "smtp.163.com",
    port : "25",
    auth : {
        user : "halrui@163.com",
        pass : "HCVISEHMZDMNVNOW"
    }
}

module.exports = {
    mysql_conf,
    redis_conf,
    smtp_conf
}